package com.example.javatwo.pojo.cg.lch;

import groovy.transform.stc.FirstParam.ThirdGenericType;

public class pageBean {
	private int toppage;//上一页
	private int nextpage;//下一页
	private int count;//总记录数
	private int pagesize;//总页数
	private int dqsize;//当前页数
	private int currentpage;//当前页
	private Object pageobj;//存数据
	
	public pageBean(int count,int currentpage,Object pageobj){
		super();
		this.count=count;
		this.pagesize=count;
		this.toppage=currentpage < 1 ? 1:currentpage-1;
		this.nextpage=currentpage>=this.pagesize?currentpage:currentpage+1;
		this.currentpage=currentpage;
		this.pageobj=pageobj;
	}
	public pageBean() {
		super();
		// TODO Auto-generated constructor stub
	}
	public int getToppage() {
		return toppage;
	}
	public void setToppage(int toppage) {
		this.toppage = toppage;
	}
	public int getNextpage() {
		return nextpage;
	}
	public void setNextpage(int nextpage) {
		this.nextpage = nextpage;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public int getPagesize() {
		return pagesize;
	}
	public void setPagesize(int pagesize) {
		this.pagesize = pagesize;
	}
	public int getDqsize() {
		return dqsize;
	}
	public void setDqsize(int dqsize) {
		this.dqsize = dqsize;
	}
	public int getCurrentpage() {
		return currentpage;
	}
	public void setCurrentpage(int currentpage) {
		this.currentpage = currentpage;
	}
	public Object getPageobj() {
		return pageobj;
	}
	public void setPageobj(Object pageobj) {
		this.pageobj = pageobj;
	}
	
}
